package event

import (
	"organoid_public/domain/sample/service"
	eventbus "organoid_public/infrastructure/event"

	"github.com/google/wire"
)

// Provider common订阅
var Provider = wire.NewSet(NewSubscribe)

// Subscribe common事件订阅处理器
type Subscribe struct {
	bus eventbus.EventBus
	svc service.SearchServiceInterface
}

// NewSubscribe 实例化事件订阅器
func NewSubscribe(bus eventbus.EventBus, svc service.SearchServiceInterface) eventbus.Subscribe {
	return &Subscribe{bus: bus, svc: svc}
}

// SubscribeRegister 所有的订阅需要在此处注册
func (s Subscribe) SubscribeRegister() {

}
